package pl.edu.uw.come.mooba.util;

import java.util.Calendar;
import java.util.GregorianCalendar;

/**
 *
 * @author Piotr Kochański
 */
public class DateUtils {

    private DateUtils() {
    }

    public static Calendar strToCalendar(String timestamp){
        GregorianCalendar c = new GregorianCalendar();
        c.setTimeInMillis(Long.valueOf(timestamp)*1000); //this is PHP timestamp
        return c;
    }

}
